package com.smile.mapper.sys;

import com.smile.entity.sys.MenuConditionEntity;
import com.smile.entity.sys.MenuEntity;
import com.smile.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 菜单 mapper
 * 
 * @author smile
 * @date 2025-09-18 14:53:08
 */
public interface MenuMapper extends BaseMapper<MenuEntity, MenuConditionEntity> {
	/**
     * 查询菜单信息
     * 
     * @param id 菜单ID
     * @return 菜单信息
     */
	MenuEntity findById(Long id);
	
	/**
     * 添加菜单
     * 
     * @param menuEntity 菜单信息
     * @return 结果
     */
	int insert(MenuEntity menuEntity);
	
	/**
     * 修改菜单
     * 
     * @param menuEntity 菜单信息
     * @return 结果
     */
	int update(MenuEntity menuEntity);
	
	/**
     * 删除菜单
     * 
     * @param id 菜单ID
     * @return 结果
     */
	int deleteById(Long id);

    List<MenuEntity> findMenuByRoleIdList( @Param("roleIdList") List<Long> roleIdList);



}